package com.lantosec.hmrp.modules.sysdata.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lantosec.hmrp.modules.sysdata.entity.SysDataList;
import com.lantosec.hmrp.modules.sysdata.mapper.SysDataListMapper;
import com.lantosec.hmrp.modules.sysdata.service.ISysDataListService;
import lombok.extern.log4j.Log4j2;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * <p>
 * 系统数据列表定义表 服务实现类
 * </p>
 *
 * @author AutoCode
 * @since 2020-03-02
 */
@Service
@Primary
@Log4j2
public class SysDataListServiceImpl extends ServiceImpl<SysDataListMapper, SysDataList> implements ISysDataListService {
    @Override
    public boolean save(SysDataList entity) {
        entity.setCreateTime(new Date());
        entity.setEditTime(new Date());
        return super.save(entity);
    }
}
